<?php

	// +----------------------------------------------------------------------
	// | 店铺模型
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\model\store;

	use app\pay\model\Bill;
	use app\pay\model\Payment;
	use app\pay\model\PaymentQrcode;
	use app\pay\model\PaymentStore;
	use app\pay\model\PayOffline;
	use app\model\file\Image;
	use app\model\ucenter\User;

	class Store extends Common
	{


		/**
		 * 写入修改
		 * @param $data
		 */
		public static function onBeforeInsert($data)
		{
			$data['status'] = 1;
		}

        public function user()
        {
            return $this->belongsTo(User::class, 'user_id', 'id');
        }
		// 类型转换
		protected $type = [
		];


	}
